#【系统】
function nw:system/second_system

#【部分英雄技能】
scoreboard players add @a[tag=lingying,scores={skSneakTime=21..}] skCDSnowball 4
scoreboard players remove @a[scores={mieshang5=1..}] mieshang5 1
#个别英雄的计时
scoreboard players remove @a[scores={BOSSmieshang5=1..}] BOSSmieshang5 1
scoreboard players remove @e[scores={xingchen5=1..}] xingchen5 1
scoreboard players remove @e[scores={miyan1=2..}] miyan1 1
scoreboard players add @a[tag=yanyu,scores={skPlayer=..-1}] skPlayer 1
# scoreboard players remove @e[scores={yanyu5=1..}] yanyu5 1
scoreboard players remove @e[scores={mieshang5=1..}] mieshang5 1
scoreboard players remove @e[scores={yasuo3=1..}] yasuo3 1
scoreboard players remove @a[scores={akeer5=1..}] akeer5 1
# scoreboard players remove @a[scores={elas5=1..}] elas5 1


#【玩家通用】战斗状态每秒-1
scoreboard players remove @e[scores={EFLocks=0,skZhanDouState=1..}] skZhanDouState 1


#【玩家通用】每秒减少1s所有技能冷却时间
scoreboard players remove @e[scores={EFLocks=0,skCDEXBottle=1..},type=!item] skCDEXBottle 1
scoreboard players remove @e[scores={EFLocks=0,skCDPearl=1..},type=!item] skCDPearl 1
scoreboard players remove @e[scores={EFLocks=0,skCDEgg=1..},type=!item] skCDEgg 1
scoreboard players remove @e[scores={EFLocks=0,skCDJPG=1..},type=!item] skCDJPG 1
scoreboard players remove @e[scores={EFLocks=0,skCDSnowball=1..},type=!item] skCDSnowball 1

#【实体】每秒减少1s实体与玩家
scoreboard players add @e skCDEntity 1
scoreboard players remove @e[scores={skCDEntity1=1..},type=!item] skCDEntity1 1

scoreboard players add @a[scores={EFLocks=0}] skCDPlayer 1
scoreboard players remove @a[scores={EFLocks=0,skCDPlayer1=1..}] skCDPlayer1 1








#20刻后重新执行一次自己
schedule function nw:system/second 20t replace